const router = require('koa-router')()
const Controller = require('../../controllers/flexiPage/templatesController')

router.prefix('/flexi-page/templates-category')

router.get('/', Controller.getAllTemplates)
router.get('/:id', Controller.getTemplateById)
router.post('/', Controller.createTemplate)
router.put('/:id', Controller.updateTemplate)
router.delete('/:id', Controller.deleteTemplate)

module.exports = router